package main

import "fmt"

type ListNode struct {
	Val  int
	Next *ListNode
}

type xDto struct {
	list []int
	val  int
}

func (d xDto) set(v int) {
	d.list = append(d.list, v)
	d.val = v
}

func main() {
	x := xDto{}
	x.set(1)
	x.set(2)
	fmt.Println(x)
}
